package com.dawn.trademanage.bean;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * The persistent class for the tt_tradedetail database table.
 * 
 */
@Entity
@Table(name="tt_tradedetail")
public class TradeDetailBean implements Serializable {
    private static final long serialVersionUID = 1L;

    @Id
    @GeneratedValue(strategy=GenerationType.AUTO)
    private int tradeDetailId;

    private String fansID;

    private String fansName;

    private String fansSina;

    private int followedPrice;

    @Temporal( TemporalType.TIMESTAMP)
    private Date followedTime;

    //bi-directional many-to-one association to TradeInfoBean
    @ManyToOne
    @JoinColumn(name="tradeID")
    private TradeInfoBean ttTradeinfo;

    public int getTradeDetailId() {
        return this.tradeDetailId;
    }

    public void setTradeDetailId(int tradeDetailId) {
        this.tradeDetailId = tradeDetailId;
    }

    public String getFansID() {
        return this.fansID;
    }

    public void setFansID(String fansID) {
        this.fansID = fansID;
    }

    public String getFansName() {
        return this.fansName;
    }

    public void setFansName(String fansName) {
        this.fansName = fansName;
    }

    public String getFansSina() {
        return this.fansSina;
    }

    public void setFansSina(String fansSina) {
        this.fansSina = fansSina;
    }

    public int getFollowedPrice() {
        return this.followedPrice;
    }

    public void setFollowedPrice(int followedPrice) {
        this.followedPrice = followedPrice;
    }

    public Date getFollowedTime() {
        return this.followedTime;
    }

    public void setFollowedTime(Date followedTime) {
        this.followedTime = followedTime;
    }

    public TradeInfoBean getTtTradeinfo() {
        return this.ttTradeinfo;
    }

    public void setTtTradeinfo(TradeInfoBean ttTradeinfo) {
        this.ttTradeinfo = ttTradeinfo;
    }
}
